[INFO] cloning repository https://github.com/saint0x/rust-api
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/saint0x/rust-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaint0x%2Frust-api", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaint0x%2Frust-api'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 550777eea31024d81727223c7e76579a020f121f
[INFO] checking saint0x/rust-api against master#82310651b93a594a3fd69015e1562186a080d94c for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaint0x%2Frust-api" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  66% (6710/10024)
Updating files:  67% (6717/10024)
Updating files:  68% (6817/10024)
Updating files:  69% (6917/10024)
Updating files:  70% (7017/10024)
Updating files:  71% (7118/10024)
Updating files:  72% (7218/10024)
Updating files:  73% (7318/10024)
Updating files:  74% (7418/10024)
Updating files:  75% (7518/10024)
Updating files:  76% (7619/10024)
Updating files:  77% (7719/10024)
Updating files:  78% (7819/10024)
Updating files:  79% (7919/10024)
Updating files:  80% (8020/10024)
Updating files:  81% (8120/10024)
Updating files:  82% (8220/10024)
Updating files:  83% (8320/10024)
Updating files:  84% (8421/10024)
Updating files:  85% (8521/10024)
Updating files:  86% (8621/10024)
Updating files:  87% (8721/10024)
Updating files:  88% (8822/10024)
Updating files:  89% (8922/10024)
Updating files:  90% (9022/10024)
Updating files:  91% (9122/10024)
Updating files:  92% (9223/10024)
Updating files:  93% (9323/10024)
Updating files:  94% (9423/10024)
Updating files:  95% (9523/10024)
Updating files:  96% (9624/10024)
Updating files:  97% (9724/10024)
Updating files:  98% (9824/10024)
Updating files:  99% (9924/10024)
Updating files: 100% (10024/10024)
Updating files: 100% (10024/10024), done.
[INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/saint0x/rust-api
[INFO] finished tweaking git repo https://github.com/saint0x/rust-api
[INFO] tweaked toml for git repo https://github.com/saint0x/rust-api written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/saint0x/rust-api on toolchain 82310651b93a594a3fd69015e1562186a080d94c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/saint0x/rust-api already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ethbloom v0.11.1
[INFO] [stderr]   Downloaded ethabi v16.0.0
[INFO] [stderr]   Downloaded ethereum-types v0.12.1
[INFO] [stderr]   Downloaded secp256k1 v0.18.0
[INFO] [stderr]   Downloaded web3-async-native-tls v0.4.0
[INFO] [stderr]   Downloaded secp256k1-sys v0.2.0
[INFO] [stderr]   Downloaded web3 v0.18.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6c6ebc8ee06e11c4248cedc1ad359ff511c97f0c9c69927bb2fa176c53c538c0
[INFO] running `Command { std: "docker" "start" "-a" "6c6ebc8ee06e11c4248cedc1ad359ff511c97f0c9c69927bb2fa176c53c538c0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6c6ebc8ee06e11c4248cedc1ad359ff511c97f0c9c69927bb2fa176c53c538c0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c6ebc8ee06e11c4248cedc1ad359ff511c97f0c9c69927bb2fa176c53c538c0", kill_on_drop: false }`
[INFO] [stdout] 6c6ebc8ee06e11c4248cedc1ad359ff511c97f0c9c69927bb2fa176c53c538c0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7dd559109f0bc05348e5b0aa3732b5026e423ea2e1dab7d69f507b13a4655348
[INFO] running `Command { std: "docker" "start" "-a" "7dd559109f0bc05348e5b0aa3732b5026e423ea2e1dab7d69f507b13a4655348", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.81
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling cc v1.0.95
[INFO] [stderr]    Compiling autocfg v1.2.0
[INFO] [stderr]     Checking bytes v1.6.0
[INFO] [stderr]     Checking pin-project-lite v0.2.14
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling serde v1.0.198
[INFO] [stderr]     Checking once_cell v1.19.0
[INFO] [stderr]     Checking futures-core v0.3.30
[INFO] [stderr]     Checking itoa v1.0.11
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking futures-sink v0.3.30
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling pkg-config v0.3.30
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking futures-io v0.3.30
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]     Checking futures-channel v0.3.30
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]    Compiling hashbrown v0.14.3
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking memchr v2.7.2
[INFO] [stderr]     Checking log v0.4.21
[INFO] [stderr]     Checking futures-task v0.3.30
[INFO] [stderr]    Compiling toml_datetime v0.6.5
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling winnow v0.5.40
[INFO] [stderr]    Compiling radium v0.6.2
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]     Checking foreign-types-shared v0.1.1
[INFO] [stderr]     Checking rustc-hex v2.1.0
[INFO] [stderr]     Checking tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.64
[INFO] [stderr]     Checking foreign-types v0.3.2
[INFO] [stderr]     Checking tinyvec v1.6.0
[INFO] [stderr]     Checking tracing-core v0.1.32
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]     Checking tap v1.0.1
[INFO] [stderr]     Checking funty v1.1.0
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]     Checking wyz v0.2.0
[INFO] [stderr]     Checking bitflags v2.5.0
[INFO] [stderr]     Checking static_assertions v1.1.0
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]     Checking rlp v0.5.2
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling indexmap v2.2.6
[INFO] [stderr]     Checking openssl-probe v0.1.5
[INFO] [stderr]     Checking ryu v1.0.17
[INFO] [stderr]    Compiling serde_json v1.0.116
[INFO] [stderr]     Checking byte-slice-cast v1.2.2
[INFO] [stderr]     Checking bitvec v0.20.4
[INFO] [stderr]     Checking arrayvec v0.7.4
[INFO] [stderr]     Checking unicode-bidi v0.3.15
[INFO] [stderr]     Checking block-padding v0.2.1
[INFO] [stderr]     Checking unicode-normalization v0.1.23
[INFO] [stderr]     Checking percent-encoding v2.3.1
[INFO] [stderr]     Checking httpdate v1.0.3
[INFO] [stderr]     Checking impl-rlp v0.3.0
[INFO] [stderr]    Compiling thiserror v1.0.59
[INFO] [stderr]     Checking getrandom v0.2.14
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]     Checking mio v0.8.11
[INFO] [stderr]    Compiling openssl-sys v0.9.102
[INFO] [stderr]     Checking socket2 v0.5.6
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]    Compiling syn v2.0.60
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking form_urlencoded v1.2.1
[INFO] [stderr]     Checking try-lock v0.2.5
[INFO] [stderr]     Checking opaque-debug v0.3.1
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]     Checking cpufeatures v0.2.12
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]     Checking want v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling secp256k1-sys v0.4.2
[INFO] [stderr]    Compiling toml_edit v0.19.15
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]     Checking idna v0.5.0
[INFO] [stderr]     Checking uint v0.9.5
[INFO] [stderr]     Checking tower-service v0.3.2
[INFO] [stderr]     Checking base64 v0.21.7
[INFO] [stderr]     Checking untrusted v0.9.0
[INFO] [stderr]    Compiling secp256k1-sys v0.2.0
[INFO] [stderr]     Checking mime v0.3.17
[INFO] [stderr]     Checking keccak v0.1.5
[INFO] [stderr]     Checking url v2.5.0
[INFO] [stderr]     Checking rustls-pemfile v1.0.4
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking encoding_rs v0.8.34
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking untrusted v0.7.1
[INFO] [stderr]     Checking sha-1 v0.9.8
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking matches v0.1.10
[INFO] [stderr]     Checking fixed-hash v0.7.0
[INFO] [stderr]    Compiling rustls v0.20.9
[INFO] [stderr]    Compiling convert_case v0.4.0
[INFO] [stderr]     Checking sync_wrapper v0.1.2
[INFO] [stderr]     Checking sha3 v0.9.1
[INFO] [stderr]     Checking ipnet v2.9.0
[INFO] [stderr]     Checking base64 v0.13.1
[INFO] [stderr]     Checking spin v0.5.2
[INFO] [stderr]     Checking headers v0.3.9
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]     Checking futures-timer v3.0.3
[INFO] [stderr]     Checking uuid v0.8.2
[INFO] [stderr]     Checking secp256k1 v0.21.3
[INFO] [stderr]     Checking secp256k1 v0.18.0
[INFO] [stderr]    Compiling proc-macro-crate v1.3.1
[INFO] [stderr]    Compiling serde_derive v1.0.198
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.59
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]     Checking webpki v0.22.4
[INFO] [stderr]     Checking sct v0.7.1
[INFO] [stderr]     Checking tokio v1.37.0
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking pin-project v1.1.5
[INFO] [stderr]    Compiling impl-trait-for-tuples v0.2.2
[INFO] [stderr]    Compiling parity-scale-codec-derive v2.3.1
[INFO] [stderr]    Compiling derive_more v0.99.17
[INFO] [stderr]     Checking futures-executor v0.3.30
[INFO] [stderr]     Checking tokio-util v0.7.10
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tokio-stream v0.1.15
[INFO] [stderr]     Checking tokio-util v0.6.10
[INFO] [stderr]     Checking web3-async-native-tls v0.4.0
[INFO] [stderr]     Checking futures v0.3.30
[INFO] [stderr]     Checking soketto v0.7.1
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking impl-serde v0.3.2
[INFO] [stderr]     Checking parity-scale-codec v2.3.1
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking ethbloom v0.11.1
[INFO] [stderr]     Checking impl-codec v0.5.1
[INFO] [stderr]     Checking primitive-types v0.10.1
[INFO] [stderr]     Checking jsonrpc-core v18.0.0
[INFO] [stderr]     Checking ethereum-types v0.12.1
[INFO] [stderr]     Checking hyper v0.14.28
[INFO] [stderr]     Checking ethabi v16.0.0
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking web3 v0.18.0
[INFO] [stderr]     Checking rust_blockchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `block::Block`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use block::Block;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `block::Block`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use block::Block;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied
[INFO] [stdout]     --> src/block.rs:28:49
[INFO] [stdout]      |
[INFO] [stdout] 28   |             let json_tx = serde_json::to_string(tx)?;
[INFO] [stdout]      |                           --------------------- ^^ the trait `Serialize` is not implemented for `Transaction`
[INFO] [stdout]      |                           |
[INFO] [stdout]      |                           required by a bound introduced by this call
[INFO] [stdout]      |
[INFO] [stdout]      = help: the following other types implement trait `Serialize`:
[INFO] [stdout]                &'a T
[INFO] [stdout]                &'a mut T
[INFO] [stdout]                ()
[INFO] [stdout]                (T0, T1)
[INFO] [stdout]                (T0, T1, T2)
[INFO] [stdout]                (T0, T1, T2, T3)
[INFO] [stdout]                (T0, T1, T2, T3, T4)
[INFO] [stdout]                (T0, T1, T2, T3, T4, T5)
[INFO] [stdout]              and 232 others
[INFO] [stdout] note: required by a bound in `serde_json::to_string`
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17
[INFO] [stdout]      |
[INFO] [stdout] 2207 | pub fn to_string<T>(value: &T) -> Result<String>
[INFO] [stdout]      |        --------- required by a bound in this function
[INFO] [stdout] 2208 | where
[INFO] [stdout] 2209 |     T: ?Sized + Serialize,
[INFO] [stdout]      |                 ^^^^^^^^^ required by this bound in `to_string`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `amount` on type `&Transaction`
[INFO] [stdout]   --> src/smart_contract.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 |         transaction.amount > 0.0
[INFO] [stdout]    |                     ^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout] help: one of the expressions' fields has a field of the same name
[INFO] [stdout]    |
[INFO] [stdout] 10 |         transaction.data.amount > 0.0
[INFO] [stdout]    |                     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Blockchain`
[INFO] [stdout]   --> src/main.rs:11:26
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let mut blockchain = Blockchain::new();
[INFO] [stdout]    |                          ^^^^^^^^^^ use of undeclared type `Blockchain`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied
[INFO] [stdout]     --> src/block.rs:28:49
[INFO] [stdout]      |
[INFO] [stdout] 28   |             let json_tx = serde_json::to_string(tx)?;
[INFO] [stdout]      |                           --------------------- ^^ the trait `Serialize` is not implemented for `Transaction`
[INFO] [stdout]      |                           |
[INFO] [stdout]      |                           required by a bound introduced by this call
[INFO] [stdout]      |
[INFO] [stdout]      = help: the following other types implement trait `Serialize`:
[INFO] [stdout]                &'a T
[INFO] [stdout]                &'a mut T
[INFO] [stdout]                ()
[INFO] [stdout]                (T0, T1)
[INFO] [stdout]                (T0, T1, T2)
[INFO] [stdout]                (T0, T1, T2, T3)
[INFO] [stdout]                (T0, T1, T2, T3, T4)
[INFO] [stdout]                (T0, T1, T2, T3, T4, T5)
[INFO] [stdout]              and 232 others
[INFO] [stdout] note: required by a bound in `serde_json::to_string`
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17
[INFO] [stdout]      |
[INFO] [stdout] 2207 | pub fn to_string<T>(value: &T) -> Result<String>
[INFO] [stdout]      |        --------- required by a bound in this function
[INFO] [stdout] 2208 | where
[INFO] [stdout] 2209 |     T: ?Sized + Serialize,
[INFO] [stdout]      |                 ^^^^^^^^^ required by this bound in `to_string`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_status`
[INFO] [stdout]   --> src/smart_contract.rs:26:35
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn update_contract_status(new_status: &str) {
[INFO] [stdout]    |                                   ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_status`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `client_name`
[INFO] [stdout]   --> src/smart_contract.rs:31:33
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub fn extract_requirements(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *co...
[INFO] [stdout]    |                                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `client_email`
[INFO] [stdout]   --> src/smart_contract.rs:31:52
[INFO] [stdout]    |
[INFO] [stdout] 31 | ...nts(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                           ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_email`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `payment_amount`
[INFO] [stdout]   --> src/smart_contract.rs:31:72
[INFO] [stdout]    |
[INFO] [stdout] 31 | ... client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payment_amount`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `requirements`
[INFO] [stdout]   --> src/smart_contract.rs:31:93
[INFO] [stdout]    |
[INFO] [stdout] 31 | ..., payment_amount: f64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                           ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requirements`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `description`
[INFO] [stdout]   --> src/smart_contract.rs:31:113
[INFO] [stdout]    |
[INFO] [stdout] 31 | ...64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                            ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_input`
[INFO] [stdout]   --> src/smart_contract.rs:37:36
[INFO] [stdout]    |
[INFO] [stdout] 37 |     pub fn generate_smart_contract(user_input: &str) -> *const c_char {
[INFO] [stdout]    |                                    ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_input`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `contract_code`
[INFO] [stdout]   --> src/smart_contract.rs:43:38
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool {
[INFO] [stdout]    |                                      ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_code`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_path`
[INFO] [stdout]   --> src/smart_contract.rs:43:59
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool {
[INFO] [stdout]    |                                                           ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `amount` on type `&Transaction`
[INFO] [stdout]   --> src/smart_contract.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 |         transaction.amount > 0.0
[INFO] [stdout]    |                     ^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout] help: one of the expressions' fields has a field of the same name
[INFO] [stdout]    |
[INFO] [stdout] 10 |         transaction.data.amount > 0.0
[INFO] [stdout]    |                     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Blockchain`
[INFO] [stdout]   --> src/main.rs:11:26
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let mut blockchain = Blockchain::new();
[INFO] [stdout]    |                          ^^^^^^^^^^ use of undeclared type `Blockchain`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::smart_contract`
[INFO] [stdout]  --> src/block.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::smart_contract::SmartContract;
[INFO] [stdout]   |            ^^^^^^^^^^^^^^ could not find `smart_contract` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `secp256k1::sign`, `secp256k1::verify`
[INFO] [stdout]  --> src/crypto.rs:1:37
[INFO] [stdout]   |
[INFO] [stdout] 1 | use secp256k1::{SecretKey, Message, sign, verify};
[INFO] [stdout]   |                                     ^^^^  ^^^^^^ no `verify` in the root
[INFO] [stdout]   |                                     |
[INFO] [stdout]   |                                     no `sign` in the root
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider importing this module instead:
[INFO] [stdout]           rustls::sign
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_blockchain` (bin "rust_blockchain") due to 3 previous errors; 10 warnings emitted
[INFO] [stdout] error[E0432]: unresolved import `crate::smart_contract`
[INFO] [stdout]  --> src/block.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::smart_contract::SmartContract;
[INFO] [stdout]   |            ^^^^^^^^^^^^^^ could not find `smart_contract` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0432]: unresolved imports `secp256k1::sign`, `secp256k1::verify`
[INFO] [stdout]  --> src/crypto.rs:1:37
[INFO] [stdout]   |
[INFO] [stdout] 1 | use secp256k1::{SecretKey, Message, sign, verify};
[INFO] [stdout]   |                                     ^^^^  ^^^^^^ no `verify` in the root
[INFO] [stdout]   |                                     |
[INFO] [stdout]   |                                     no `sign` in the root
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider importing this module instead:
[INFO] [stdout]           rustls::sign
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_status`
[INFO] [stdout]   --> src/smart_contract.rs:26:35
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn update_contract_status(new_status: &str) {
[INFO] [stdout]    |                                   ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_status`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `client_name`
[INFO] [stdout]   --> src/smart_contract.rs:31:33
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub fn extract_requirements(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *co...
[INFO] [stdout]    |                                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `client_email`
[INFO] [stdout]   --> src/smart_contract.rs:31:52
[INFO] [stdout]    |
[INFO] [stdout] 31 | ...nts(client_name: &str, client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                           ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_email`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `payment_amount`
[INFO] [stdout]   --> src/smart_contract.rs:31:72
[INFO] [stdout]    |
[INFO] [stdout] 31 | ... client_email: &str, payment_amount: f64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payment_amount`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `requirements`
[INFO] [stdout]   --> src/smart_contract.rs:31:93
[INFO] [stdout]    |
[INFO] [stdout] 31 | ..., payment_amount: f64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                           ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requirements`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `description`
[INFO] [stdout]   --> src/smart_contract.rs:31:113
[INFO] [stdout]    |
[INFO] [stdout] 31 | ...64, requirements: &str, description: &str) -> *const c_char {
[INFO] [stdout]    |                            ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_input`
[INFO] [stdout]   --> src/smart_contract.rs:37:36
[INFO] [stdout]    |
[INFO] [stdout] 37 |     pub fn generate_smart_contract(user_input: &str) -> *const c_char {
[INFO] [stdout]    |                                    ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_input`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `contract_code`
[INFO] [stdout]   --> src/smart_contract.rs:43:38
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool {
[INFO] [stdout]    |                                      ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_code`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_path`
[INFO] [stdout]   --> src/smart_contract.rs:43:59
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub fn save_contract_as_solidity(contract_code: &str, file_path: &str) -> bool {
[INFO] [stdout]    |                                                           ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_blockchain` (bin "rust_blockchain" test) due to 3 previous errors; 10 warnings emitted
[INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied
[INFO] [stdout]     --> src/block.rs:28:49
[INFO] [stdout]      |
[INFO] [stdout] 28   |             let json_tx = serde_json::to_string(tx)?;
[INFO] [stdout]      |                           --------------------- ^^ the trait `Serialize` is not implemented for `Transaction`
[INFO] [stdout]      |                           |
[INFO] [stdout]      |                           required by a bound introduced by this call
[INFO] [stdout]      |
[INFO] [stdout]      = help: the following other types implement trait `Serialize`:
[INFO] [stdout]                &'a T
[INFO] [stdout]                &'a mut T
[INFO] [stdout]                ()
[INFO] [stdout]                (T0, T1)
[INFO] [stdout]                (T0, T1, T2)
[INFO] [stdout]                (T0, T1, T2, T3)
[INFO] [stdout]                (T0, T1, T2, T3, T4)
[INFO] [stdout]                (T0, T1, T2, T3, T4, T5)
[INFO] [stdout]              and 232 others
[INFO] [stdout] note: required by a bound in `serde_json::to_string`
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17
[INFO] [stdout]      |
[INFO] [stdout] 2207 | pub fn to_string<T>(value: &T) -> Result<String>
[INFO] [stdout]      |        --------- required by a bound in this function
[INFO] [stdout] 2208 | where
[INFO] [stdout] 2209 |     T: ?Sized + Serialize,
[INFO] [stdout]      |                 ^^^^^^^^^ required by this bound in `to_string`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_blockchain` (lib) due to 3 previous errors
[INFO] [stdout] error[E0277]: the trait bound `Transaction: Serialize` is not satisfied
[INFO] [stdout]     --> src/block.rs:28:49
[INFO] [stdout]      |
[INFO] [stdout] 28   |             let json_tx = serde_json::to_string(tx)?;
[INFO] [stdout]      |                           --------------------- ^^ the trait `Serialize` is not implemented for `Transaction`
[INFO] [stdout]      |                           |
[INFO] [stdout]      |                           required by a bound introduced by this call
[INFO] [stdout]      |
[INFO] [stdout]      = help: the following other types implement trait `Serialize`:
[INFO] [stdout]                &'a T
[INFO] [stdout]                &'a mut T
[INFO] [stdout]                ()
[INFO] [stdout]                (T0, T1)
[INFO] [stdout]                (T0, T1, T2)
[INFO] [stdout]                (T0, T1, T2, T3)
[INFO] [stdout]                (T0, T1, T2, T3, T4)
[INFO] [stdout]                (T0, T1, T2, T3, T4, T5)
[INFO] [stdout]              and 232 others
[INFO] [stdout] note: required by a bound in `serde_json::to_string`
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.116/src/ser.rs:2209:17
[INFO] [stdout]      |
[INFO] [stdout] 2207 | pub fn to_string<T>(value: &T) -> Result<String>
[INFO] [stdout]      |        --------- required by a bound in this function
[INFO] [stdout] 2208 | where
[INFO] [stdout] 2209 |     T: ?Sized + Serialize,
[INFO] [stdout]      |                 ^^^^^^^^^ required by this bound in `to_string`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_blockchain` (lib test) due to 3 previous errors
[INFO] [stdout] Some errors have detailed explanations: E0277, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "7dd559109f0bc05348e5b0aa3732b5026e423ea2e1dab7d69f507b13a4655348", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7dd559109f0bc05348e5b0aa3732b5026e423ea2e1dab7d69f507b13a4655348", kill_on_drop: false }`
[INFO] [stdout] 7dd559109f0bc05348e5b0aa3732b5026e423ea2e1dab7d69f507b13a4655348
